﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emoney.UserTraining.DAL;
using Emoney.UserTraining.Model;

namespace Emoney.UserTraining.BLL
{
    public class Traning_LecturerBLL
    {
        private readonly Traning_LecturerDAL dal = new Traning_LecturerDAL();
        /// <summary>
        /// 查询数据
        /// </summary>
        /// <returns></returns>
        public List<Traning_Lecturer> GetList()
        {
            return dal.GetList();
        }
        /// <summary>
        /// 查询数据
        /// </summary>
        /// <returns></returns>
        public Traning_Lecturer GetModel(int id)
        {
            return dal.GetModel(id);
        }

        /// <summary>
        /// 新增和修改
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public int AddUpdate(Traning_Lecturer c)
        {
            return dal.AddUpdate(c);
        }

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Delete(int id)
        {
            return dal.Delete(id);
        }
    }
}
